package cn.hxth.cloud.provider.controller;

import cn.hxth.cloud.api.domain.ProductInputOrder;
import cn.hxth.cloud.api.domain.ProductOutputOrder;
import cn.hxth.cloud.api.domain.SteelsOutputOrder;
import cn.hxth.cloud.provider.service.WmsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/wms/")
public class WmsController {
    @Resource
    private WmsService wmsService;
    @PostMapping("insertProductOutputOrder")
    public  Boolean insertProductOutputOrder(@RequestBody ProductOutputOrder productOutputOrder){
       return this.wmsService.insertProductOutputOrder(productOutputOrder) ;

    }
    @PostMapping("insertSteelsInputOrder")
    public Boolean insertSteelsInputOrder(@RequestParam("mid") String mid){
       return  this.wmsService.insertSteelsInputOrder(mid) ;
    }
    @PostMapping("insertSteelsOutputOrder")
    public Boolean insertSteelsOutputOrder(@RequestBody SteelsOutputOrder steelsOutputOrder){
        return this.wmsService.insertSteelsOutputOrder(steelsOutputOrder) ;
    }
    @PostMapping("insertProductInputOrder")
    public  Boolean insertProductInputOrder(@RequestBody ProductInputOrder productInputOrder){
        return this.wmsService.insertProductInputOrder(productInputOrder) ;

    }
}
